查询订单
请求参数 | 类型 | 描述 |
---|---|---|
device_id | string | 小票机设备号 |
print_order_no | string | 打印单号 |
php
$instance->v3->payDevices->printers->_device_id_->printOrders->_print_order_no_->getAsync([
'device_id' => 'WINCIE*EIXHRB',
'print_order_no' => 'wx8888888888888888',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/pay-devices/printers/{device_id}/print-orders/{print_order_no}')->getAsync([
'device_id' => 'WINCIE*EIXHRB',
'print_order_no' => 'wx8888888888888888',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/pay-devices/printers/{device_id}/print-orders/{print_order_no}']->getAsync([
'device_id' => 'WINCIE*EIXHRB',
'print_order_no' => 'wx8888888888888888',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->payDevices->printers->_device_id_->printOrders->_print_order_no_->get([
'device_id' => 'WINCIE*EIXHRB',
'print_order_no' => 'wx8888888888888888',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/pay-devices/printers/{device_id}/print-orders/{print_order_no}')->get([
'device_id' => 'WINCIE*EIXHRB',
'print_order_no' => 'wx8888888888888888',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/pay-devices/printers/{device_id}/print-orders/{print_order_no}']->get([
'device_id' => 'WINCIE*EIXHRB',
'print_order_no' => 'wx8888888888888888',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
print_order_no | string | 打印单号 |
template_id | string | 模板ID |
notify_url | string | 回调通知地址 |
print_state | string | 打印状态PRINT_STATE_WAIT | PRINT_STATE_SUCCESS | PRINT_STATE_FAIL | PRINT_STATE_CACHED 枚举值之一 |
print_state_description | string | 打印状态描述 |
variable_list | object[] | 变量列表 |
key | string | |
value | string | |
table_list | object[] | 表格变量列表 |
key | string | |
row_list | object[] | |
cell_list | string[] |
参阅 情